﻿<%@ Page Title="Usuário" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="User.aspx.cs" Inherits="LuckyLoot.Presentation.UserPage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<fieldset><legend>Usuário</legend>
    <div>
        <label for="userName">Nome*</label><br />
        <asp:TextBox runat="server" ID="userName" ClientIDMode="Static" CssClass="k-textbox" required></asp:TextBox><br />

        <label for="userPhone">Telefone</label><br />
        <asp:TextBox runat="server" ID="userPhone" ClientIDMode="Static" CssClass="k-textbox"></asp:TextBox><br />
        
        <label for="userEmail">Email*</label><br />
        <asp:TextBox runat="server" ID="userEmail" ClientIDMode="Static" type="email" CssClass="k-textbox" Width="350" required validationMessage="Insira um e-mail válido" ></asp:TextBox><br />
        
        <label for="userPassword">Senha*</label><br />
        <asp:TextBox runat="server" ID="userPassword" ClientIDMode="Static" CssClass="k-textbox" Width="350" required TextMode="Password"></asp:TextBox><br />

        <label for="userFacebook">Link do Facebook</label><br />
        <asp:TextBox runat="server" ID="userFacebook" ClientIDMode="Static" CssClass="k-textbox" pattern="(?:(?:http|https):\/\/)?(?:www.)?facebook.com\/(?:(?:\w)*#!\/)?(?:pages\/)?(?:[?\w\-]*\/)?(?:profile.php\?id=(?=\d.*))?([\w\-]*)?" validationMessage="Insira um link válido." ></asp:TextBox><br />
        

        <asp:CheckBox ID="userAdmin" ClientIDMode="Static" Text="Usuário com privilégios de administrador" Checked="false" runat="server" />
        <br />

        <asp:CheckBox ID="userTattooArtist" ClientIDMode="Static" Text="Usuário é tatuador" Checked="false" runat="server" />
        <br /><br />

        <asp:Button runat="server" ID="SaveUser" CssClass="k-button" Text="Salvar" />
    </div>
    </fieldset>
        <h1><asp:Label ID="usersLabel" Visible="false" runat="server" Text="Usuários"></asp:Label></h1>
        <asp:GridView ID="usersGrid" Visible="false" ClientIDMode="Static" runat="server" EmptyDataText="-" ></asp:GridView>

        <script>
            $(document).ready(function () {


                $("#usersGrid").kendoGrid({
                    selectable: true
                });


            });

    </script>

</asp:Content>
